home *** CD-ROM | disk | FTP | other *** search
/ HaCKeRz Kr0nlcKLeZ 1 / HaCKeRz Kr0nlcKLeZ.iso / emulator / coleco / 6502.txt < prev    next >
Encoding:
Text File  |  1996-04-29  |  2.8 KB  |  94 lines

  1.  
  2. Summary of 6502 Opcodes
  3. ------- -- ---- -------
  4.  
  5. ADC   Add to accumulator with carry.
  6. AND   "AND" with accumulator.
  7. ASL   Arithmetic Shift Left. Bit0=0 C=Bit7.
  8. BCC   Branch on Carry Clear.
  9. BCS   Branch on Carry Set.
  10. BEQ   Branch on result Equal (zero).
  11. BIT   Test bits in memory with accumulator.
  12. BMI   Branch on result Minus.
  13. BNE   Branch on result Not Equal (not zero).
  14. BPL   Branch on result Plus.
  15. BRK   Forced BREAK.
  16. BVC   Branch on overflow Clear.
  17. BVS   Branch on overflow Set.
  18. CLC   Clear Carry flag.
  19. CLD   Clear Decimal mode.
  20. CLI   Clear Interrupt disable bit.
  21. CLV   Clear overflow flag.
  22. CMP   Compare with accumulator.
  23. CPX   Compare with X register.
  24. CPY   Compare with Y register.
  25. DEC   Decrement memory by one.
  26. DEX   Decrement X register by one.
  27. DEY   Decrement Y register by one.
  28. EOR   "Exclusive-OR" with accumulator.
  29. INC   Increment memory by one.
  30. INX   Increment X register by one.
  31. INY   Increment Y register by one.
  32. JMP   Unconditional Jump to new address.
  33. JSR   Unconditional Jump, saving return address.
  34. LDA   Load accumulator.
  35. LDX   Load X register.
  36. LDY   Load Y register.
  37. LSR   Logical Shift Right. Bit7=0 C=Bit0.
  38. NOP   No Operation.
  39. ORA   "OR" with accumulator.
  40. PHA   Push Accumulator on stack.
  41. PHP   Push Processor status register on stack.
  42. PLA   Pull Accumulator from stack.
  43. PLP   Pull Processor status register from stack.
  44. ROL   Rotate one bit Left (mem. or acc.).  C=Bit7 Bit0=C.
  45. ROR   Rotate one bit Right (mem. or acc.).  C=Bit0 Bit7=C.
  46. RTI   Return from Interrupt.
  47. RTS   Return from Subroutine.
  48. SBC   Subtract from accumulator with borrow.
  49. SEC   Set Carry flag.
  50. SED   Set Decimal mode.
  51. SEI   Set Interrupt disable status.
  52. STA   Store Accumulator in memory.
  53. STX   Store X register in memory.
  54. STY   Store Y register in memory.
  55. TAX   Transfer Accumulator to X register.
  56. TAY   Transfer Accumulator to Y register.
  57. TSX   Transfer Stack pointer to X register.
  58. TXA   Transfer X register to Accumulator.
  59. TXS   Transfer X register to Stack pointer.
  60. TYA   Transfer Y register to Accumulator.
  61.  
  62. The Processor Status Register, "P"
  63. --- --------- ------ --------- ---
  64.  
  65. 7 6 5 4 3 2 1 0
  66. N V   B D I Z C
  67.  
  68. 7   N    Negative
  69. 6   V    Overflow
  70. 5        <..Future expansion..>
  71. 4   B    BRK command
  72. 3   D    Decimal mode
  73. 2   I    IRQ disable
  74. 1   Z    Zero
  75. 0   C    Carry
  76.  
  77. Addressing Modes of 6502 Assembly Code
  78. ---------- ----- -- ---- -------- ----
  79.  
  80. LDA  #$07       Immediate mode
  81. LDA  $1F        Zero page absolute
  82. LDA  $0800      Absolute
  83. CLC             Implied
  84. JMP  ($0036)    Indirect absolute
  85. LDA  $FE90,X    Absolute indexed (by X)
  86. LDA  $FE90,Y    Absolute indexed (by Y)
  87. LDA  $2A,X      Zero page indexed
  88. LDA  ($2A,X)    Indexed indirect
  89. LDA  ($2A),Y    Indirect indexed
  90. BCC  $03        Relative
  91. BCC  $0803      Relative (alternate form)
  92. LSR  A          Accumulator
  93. LSR             Accumulator (alternate form)
  94.